package cn.netjava.wk;

import java.io.File;

public class FileThreadDelete {

String filename;
File[]path=File.listRoots();//restore the number of the computer's roots


public FileThreadDelete(String filename){	 
	 this.filename=filename;
    delete();
}
/*
* @param no vulues
* @param this mehtod use to create some FileDelete object
*@param it can produce some threads to delete the file
* @return null
*/
public void delete(){
	FileDelete[]file=new FileDelete[path.length];    
	for(int j=0;j<file.length;j++){
   	 file[j]=new FileDelete(path[j].getAbsolutePath(),filename);
       
	}
  
}

//public static void main(String[]args){
//	FileSearchThread th=new FileSearchThread("Main.java");
//}
}


